package com.gzsxy.esjy.service.core.sign.dto;

import com.gzsxy.esjy.service.core.sign.enums.SignStatus;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author chenguoyi
 * @since 2020/9/10
 */
@Getter
@Setter
public class SignWebsocketDto {

    private int code;

    private String msg;

    private Object data;

    public SignWebsocketDto(SignStatus signStatus) {
        this.code = signStatus.getCode();
        this.msg = signStatus.getName();
    }

    public SignWebsocketDto(SignStatus signStatus, String msg) {
        this.code = signStatus.getCode();
        this.msg = msg;
    }

    public SignWebsocketDto() {
    }
}
